package com.tcxhb.job.agent.service;


import com.tcxhb.job.agent.request.CallbackRequest;
import com.tcxhb.job.common.model.MiscResult;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/5
 */
public interface JobServerApi {
    /**
     * 注册
     *
     * @param ip
     * @param port
     * @return
     */
    MiscResult<Boolean> register(String ip, Integer port, String appname);

    /**
     * 注册
     *
     * @param ip
     * @param port
     * @return
     */
    MiscResult<Boolean> offline(String ip, Integer port, String appname);


    /**
     * @return
     */
    MiscResult<Boolean> callback(CallbackRequest request);

}

